package stone;

import java.io.StringReader;

public class StoneExample {

	public static void main(String[] args)throws Exception {
		sampleLexer();

	}
	
	public static void sampleLexer()throws Exception{
		Lexer lexer = new Lexer(new StringReader("i=i+1"));
		
		for(Token token;(token = lexer.read()) != Token.EOF;){
			System.out.println(token.getClass().getSimpleName() + "=> " + token.getText());
		}
	}

}
